package com.sjgl.esdn.mapper;

import com.sjgl.esdn.domain.entity.uc.UCMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UCMessageMapper {
    /**
     * 选择消息通过用户id
     *
     * @param userId 用户id
     * @return {@code List<UCMessage>}
     */
    List<UCMessage> selectMessageByUserId(@Param("userId") Long userId);

    String selectContentByCommentId(@Param("commentId") Long commentId);

    int insertMessage(UCMessage UCMessage);
}
